﻿
namespace Mitc.Portal.Core.Entitys.Lienket
{
    #region refer
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using MITC.Portal.Core.Entitys.Lienket;
    using SPGenesis.Entities;

    #endregion

    public class LienketMaping : SPGENEntityMap<LienketEntity>
    {
        protected override void InitializeMapper()
        {

            RegisterIdentifierProperty(p => p.ID);
            MapField(p => p.Title, "Title");
            MapField(p => p.UrlLink, LienketIntance.UrlLink.InternalName);
            MapField(p => p.Order, LienketIntance.LinkOrder.InternalName);
            MapField(p => p.Description, LienketIntance.Description.InternalName);
            MapFieldToEnum<LinkTaget>(p => p.Taget, LienketIntance.TagetLink.InternalName, SPGENEntityEnumMappingOptions.ChoiceMappings);


        }
    }
}
